#!/usr/bin/python

import socket, Tkinter

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("gmail.com",80))
ip = "IP-Adresse: " + s.getsockname()[0]


root = Tkinter.Tk()
root.title(ip)
Tkinter.Label(root, text=ip).pack()
root.mainloop()
